package zlc.season.testproject;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import zlc.season.flavortest.LibraryConstant;


public class MainActivity extends AppCompatActivity {

    private Button button;

    private TextView text;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        text = (TextView) findViewById(R.id.text);
        button = (Button) findViewById(R.id.button);

        text.setText(Constant.Api);

        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                button.setText(LibraryConstant.LIBRARY_STRING);
            }
        });
    }
}
